import {defineStore} from "pinia";


export const useDetailsStore = defineStore(
    'details',
    {
        state: () => ({
            row: undefined,
            keyList: [],
        }),
        actions: {
            updateRow(data) {
                this.row = data;
                console.log('更新vuex.row:', this.row);
            },
            updateKeyList(data) {
                this.keyList = data;
                console.log('更新vuex.keyList:', this.keyList);
            },
        }
    })

